<?php
/**
 * Zhub - A PHP Framework For API Developer
 *
 * This file is part of the Zhub package.
 *
 * (c) YiLong Fan <fantiq@163.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @author fanyilong <fantiq@163.com>
 * @copyright 2017 fanyilong. All rights reserved.
 * @package Zhub
 * @date 18-2-11
 */

namespace Zhub\Utils;


use Zhub\DataStruct\Enum;

class Type extends Enum
{
    const VOID = 00;

    const NULL = 01;

    const BOOL = 02;

    const INT = 03;

    const FLOAT = 04;

    const STRING = 05;

    const ARRAY = 06;

    const CLAZZ = 07;

    public static function initialize(): array
    {
        return [
            self::VOID => 'void',
            self::NULL => 'null',
            self::BOOL => 'bool',
            self::INT => 'int',
            self::FLOAT => 'float',
            self::STRING => 'string',
            self::ARRAY => 'array',
            self::CLAZZ => 'class',
        ];
    }

}
